home *** CD-ROM | disk | FTP | other *** search
/ Take-Home Tutor en Espanol / TakeHomeTutor.iso / pc / En espanol / Take-Home Tutor 3 / glossary.swf / scripts / frame_2 / DoAction.as
Encoding:
Text File  |  2004-02-09  |  25.2 KB  |  1,158 lines

  1. function ext_XML_GET_TEXT()
  2. {
  3.    return this.firstChild.nodeType != 3 ? null : this.firstChild.nodeValue;
  4. }
  5. function ext_XML_SET_TEXT(text)
  6. {
  7.    this.firstChild.nodeValue = text;
  8. }
  9. function init()
  10. {
  11.    parent = this;
  12.    toggle = "en-sp";
  13.    loadXMLDoc("a");
  14.    a.gotoAndStop("rollOver");
  15.    english.gotoAndStop("rollOver");
  16.    english.enabled = false;
  17.    lastClicked = a;
  18.    audioFile = "";
  19.    audioFile2 = "";
  20.    snd = new Sound();
  21.    snd2 = new Sound();
  22.    lastWordClicked;
  23.    dragBar.useHandCursor = false;
  24.    dragBar.onPress = function()
  25.    {
  26.       this._parent.startDrag();
  27.       dragBar.onMouseMove = this.onMouseMoveFunc;
  28.    };
  29.    dragBar.onRelease = function()
  30.    {
  31.       this._parent.stopDrag();
  32.       dragBar.onMouseMove = null;
  33.    };
  34.    dragBar.onMouseMoveFunc = function()
  35.    {
  36.       updateAfterEvent();
  37.    };
  38. }
  39. function loadXMLDoc(doc)
  40. {
  41.    audioIcon.gotoAndStop("disabled");
  42.    audioIcon.enabled = false;
  43.    parent.defHolder.defText.text = "";
  44.    audioFile = "";
  45.    letter = eval(doc);
  46.    letter.enabled = false;
  47.    letter.gotoAndStop("rollOver");
  48.    clearInterval(tempInterval);
  49.    glossXML = new XML();
  50.    glossXML.parent = this;
  51.    glossXML.ignoreWhite = true;
  52.    glossXML.load("glossary/" + toggle + "/" + doc + ".xml");
  53.    PMSI.preloader.queueXML(glossXML,filename);
  54.    glossXML.onLoad = function()
  55.    {
  56.       var st = getTimer();
  57.       var lists = {};
  58.       lists.phrases = this.getElementsByTagName("phrase");
  59.       lists.translations = this.getElementsByTagName("translation");
  60.       lists.audioFiles = this.getElementsByTagName("audioFile");
  61.       this.parent.gScroll.setStyleProperty("background",16777164);
  62.       this.parent.gScroll.setScrollContent("Dummy");
  63.       this.parent.createPhraseList(lists,this.parent.gScroll.getScrollContent());
  64.       this.parent.gScroll.refreshPane();
  65.       delete lists;
  66.       trace("Time: " + (getTimer() - st) / 1000);
  67.    };
  68. }
  69. function createPhraseList(lists, container)
  70. {
  71.    var p = lists.phrases;
  72.    var t = lists.translations;
  73.    var a = lists.audioFiles;
  74.    var tempwc = null;
  75.    var tempText = null;
  76.    var tempwc2 = null;
  77.    var tempText2 = null;
  78.    var i = 0;
  79.    while(i < p.length)
  80.    {
  81.       trace(p[i].text + ": " + t[i].text);
  82.       container.createEmptyMovieClip("wordClip" + i,PMSI.DepthManager.getNextDepth());
  83.       tempwc = container["wordClip" + i];
  84.       tempwc.createTextField("content",PMSI.DepthManager.getNextDepth(),0,0,0,0);
  85.       if(i == 0)
  86.       {
  87.          tempwc._x = 15;
  88.          tempwc._y = 10;
  89.       }
  90.       else
  91.       {
  92.          tempLastText = container["wordClip" + (i - 1)];
  93.          tempwc._x = 15;
  94.          tempwc._y = tempLastText._y + tempLastText._height + 2;
  95.       }
  96.       tempText = tempwc.content;
  97.       tempText.embedFonts = true;
  98.       tempText.setNewTextFormat(parent.tf);
  99.       tempText.autoSize = true;
  100.       tempText.text = p[i].text;
  101.       trace(tempText._width);
  102.       tempText.autoSize = false;
  103.       tempText.wordWrap = true;
  104.       tempText._width = 136;
  105.       tempText.autoSize = true;
  106.       tempwc.clip = {};
  107.       tempwc.clip.audioFile = a[i].text;
  108.       tempwc.clip.def = t[i].text;
  109.       tempwc.clip.phrase = tempText.text;
  110.       tempwc.clip.colorOver = 3368652;
  111.       tempwc.clip.colorOut = 13408563;
  112.       tempwc.onRelease = function()
  113.       {
  114.          trace(this._name + " clicked: " + this.clip.audioFile);
  115.          lastWordClicked.onRollOut();
  116.          lastWordClicked.enabled = true;
  117.          this.enabled = false;
  118.          this.onRollOver();
  119.          lastWordClicked = this;
  120.          parent.defHolder.createTextField("defText",PMSI.DepthManager.getNextDepth(),0,0,0,0);
  121.          parent.defHolder.defText.embedFonts = true;
  122.          parent.defHolder.defText.setNewTextFormat(parent.tf2);
  123.          parent.defHolder.defText.autoSize = true;
  124.          parent.defHolder.defText.selectable = false;
  125.          parent.defHolder.defText.autoSize = false;
  126.          parent.defHolder.defText.wordWrap = true;
  127.          parent.defHolder.defText._width = 160;
  128.          parent.defHolder.defText._height = 100;
  129.          parent.defHolder.defText.autoSize = true;
  130.          if(this.clip.def != null)
  131.          {
  132.             parent.defHolder.defText.text = this.clip.def;
  133.          }
  134.          else
  135.          {
  136.             parent.defHolder.defText.text = " ";
  137.          }
  138.          audioFile = this.clip.audioFile;
  139.          clickedWord();
  140.       };
  141.       tempwc.onRollOver = function()
  142.       {
  143.          var clr = new Color(this);
  144.          clr.setRGB(this.clip.colorOver);
  145.       };
  146.       tempwc.onRollOut = function()
  147.       {
  148.          var clr = new Color(this);
  149.          clr.setRGB(this.clip.colorOut);
  150.       };
  151.       tempwc.onReleaseOutside = function()
  152.       {
  153.          var clr = new Color(this);
  154.          clr.setRGB(this.clip.colorOut);
  155.       };
  156.       container.createEmptyMovieClip("defClip" + i,PMSI.DepthManager.getNextDepth());
  157.       tempwc2 = container["defClip" + i];
  158.       tempwc2.createTextField("word",PMSI.DepthManager.getNextDepth(),0,0,0,0);
  159.       tempText2 = tempwc2.word;
  160.       i++;
  161.    }
  162. }
  163. function setLastClicked(letter)
  164. {
  165.    lastClicked.gotoAndStop("rollOut");
  166.    lastClicked.enabled = true;
  167.    lastClicked = letter;
  168. }
  169. function clickedWord()
  170. {
  171.    trace("Clicked Audio");
  172.    audioFile2 = "";
  173.    var tempAudioFile = audioFile;
  174.    var tempAudioFile2 = "";
  175.    var deFlag = tempAudioFile.indexOf("(de)");
  176.    var aFlag = tempAudioFile.indexOf("(a)");
  177.    var asFlag = tempAudioFile.indexOf("(as)");
  178.    var laFlag = tempAudioFile.indexOf("_(la)_");
  179.    var raFlag = tempAudioFile.indexOf("r(a)");
  180.    if(deFlag != -1)
  181.    {
  182.       audioFileArray = tempAudioFile.split("_(de).mp3");
  183.       tempAudioFile = audioFileArray[0];
  184.       tempAudioFile2 = tempAudioFile + "_de";
  185.    }
  186.    if(aFlag != -1)
  187.    {
  188.       audioFileArray = tempAudioFile.split("(a).mp3");
  189.       tempAudioFile = audioFileArray[0];
  190.       end = tempAudioFile.lastIndexOf("o");
  191.       tempAudioFile2 = tempAudioFile.substring(0,end);
  192.       tempAudioFile2 += "a";
  193.    }
  194.    if(asFlag != -1)
  195.    {
  196.       audioFileArray = tempAudioFile.split("(as).mp3");
  197.       tempAudioFile = audioFileArray[0];
  198.       end = tempAudioFile.lastIndexOf("os");
  199.       tempAudioFile2 = tempAudioFile.substring(0,end);
  200.       tempAudioFile2 += "as";
  201.    }
  202.    if(laFlag != -1 && aFlag == -1 && raFlag == -1)
  203.    {
  204.       audioFileArray = tempAudioFile.split("_(la)_",2);
  205.       tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
  206.       tempAudioFile2 = "la_" + audioFileArray[1];
  207.    }
  208.    if(laFlag != -1 && aFlag != -1 && raFlag == -1)
  209.    {
  210.       audioFileArray = tempAudioFile.split("_(la)_",2);
  211.       tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
  212.       tempAudioFile2 = "la_" + audioFileArray[1];
  213.       end = tempAudioFile2.lastIndexOf("o");
  214.       tempAudioFile2 = tempAudioFile2.substring(0,end);
  215.       tempAudioFile2 += "a";
  216.    }
  217.    if(laFlag != -1 && raFlag != -1)
  218.    {
  219.       audioFileArray = tempAudioFile.split("_(la)_",2);
  220.       tempAudioFile = audioFileArray[0] + "_" + audioFileArray[1];
  221.       tempAudioFile2 = "la_" + audioFileArray[1];
  222.       tempAudioFile2 += "a";
  223.    }
  224.    if(laFlag == -1 && raFlag != -1)
  225.    {
  226.       audioFileArray = tempAudioFile.split("(a)",2);
  227.       tempAudioFile = audioFileArray[0];
  228.       tempAudioFile2 = tempAudioFile + "a";
  229.    }
  230.    audioFile1 = tempAudioFile;
  231.    audioFile2 = tempAudioFile2;
  232.    if(audioFile1.indexOf(".mp3") == -1)
  233.    {
  234.       audioFile1 += ".mp3";
  235.    }
  236.    if(audioFile2 != "" && audioFile2.indexOf(".mp3") == -1)
  237.    {
  238.       audioFile2 += ".mp3";
  239.    }
  240.    trace(audioFile1);
  241.    trace(audioFile2);
  242.    checkForAudio();
  243. }
  244. function checkForAudio()
  245. {
  246.    snd.loadSound("glossary/audio/" + audioFile1);
  247.    totalBytes = snd.getBytesTotal();
  248.    trace(totalBytes);
  249.    if(totalBytes > 0)
  250.    {
  251.       parent.audioIcon.gotoAndStop("rollOut");
  252.       parent.audioIcon.enabled = true;
  253.    }
  254.    else
  255.    {
  256.       parent.audioIcon.gotoAndStop("disabled");
  257.       parent.audioIcon.enabled = false;
  258.    }
  259. }
  260. function clickedAudio()
  261. {
  262.    loadSounds(audioFile1,audioFile2);
  263. }
  264. function loadSounds(file, file2)
  265. {
  266.    snd.onLoad = function()
  267.    {
  268.    };
  269.    snd2.onLoad = function()
  270.    {
  271.    };
  272.    snd.onSoundComplete = function()
  273.    {
  274.    };
  275.    trace("loadSoundsCalled");
  276.    if(file.indexOf(".mp3") == -1)
  277.    {
  278.       file += ".mp3";
  279.    }
  280.    trace("file: " + file);
  281.    if(file2 == null)
  282.    {
  283.       snd.onSoundComplete = function()
  284.       {
  285.       };
  286.       snd.onLoad = playSound;
  287.       snd.loadSound("glossary/audio/" + file);
  288.    }
  289.    if(file2 != null)
  290.    {
  291.       if(file2.indexOf(".mp3") == -1)
  292.       {
  293.          file2 += ".mp3";
  294.       }
  295.       trace("file2: " + file2);
  296.       snd.loadSound("glossary/audio/" + file);
  297.       snd2.onLoad = playSounds;
  298.       snd2.loadSound("glossary/audio/" + file2);
  299.    }
  300. }
  301. function playSound()
  302. {
  303.    trace("playSound called");
  304.    snd.start();
  305. }
  306. function playSounds()
  307. {
  308.    trace("playSounds called");
  309.    snd.onSoundComplete = function()
  310.    {
  311.       snd2.start();
  312.    };
  313.    snd.start();
  314. }
  315. stop();
  316. String.prototype.trim = function()
  317. {
  318.    return this.rtrim().ltrim();
  319. };
  320. String.prototype.rtrim = function()
  321. {
  322.    var i = this.length - 1;
  323.    while(i >= 0 && this.charCodeAt(i) <= 32)
  324.    {
  325.       i--;
  326.    }
  327.    return this.substring(0,i + 1);
  328. };
  329. String.prototype.ltrim = function()
  330. {
  331.    var i = 0;
  332.    while(i < this.length && this.charCodeAt(i) <= 32)
  333.    {
  334.       i++;
  335.    }
  336.    return this.substring(i);
  337. };
  338. String.prototype.isWhiteSpace = function()
  339. {
  340.    var i = 0;
  341.    while(i < this.length)
  342.    {
  343.       if(this.charCodeAt(i) > 32)
  344.       {
  345.          return false;
  346.       }
  347.       i++;
  348.    }
  349.    return true;
  350. };
  351. String.prototype.toCharArray = function()
  352. {
  353.    var chars = new Array(this.length);
  354.    var i = 0;
  355.    while(i < this.length)
  356.    {
  357.       chars[i] = this.charAt(i);
  358.       i++;
  359.    }
  360.    return chars;
  361. };
  362. Array.prototype.charArrayToString = function()
  363. {
  364.    var str = new String();
  365.    var i = 0;
  366.    while(i < this.length)
  367.    {
  368.       str += this[i];
  369.       i++;
  370.    }
  371.    return str;
  372. };
  373. String.prototype.reverse = function()
  374. {
  375.    var t = this.toCharArray();
  376.    t.reverse();
  377.    var s = t.charArrayToString();
  378.    delete t;
  379.    return s;
  380. };
  381. XML.prototype.ELEMENT_NODE = 1;
  382. XML.prototype.TEXT_NODE = 3;
  383. XML.prototype._inorderItr = function(node, fnPtr)
  384. {
  385.    var stack = new Array();
  386.    var node = node;
  387.    while(true)
  388.    {
  389.       if(node)
  390.       {
  391.          stack.push(node);
  392.          node = node.firstChild;
  393.       }
  394.       else
  395.       {
  396.          node = stack.pop();
  397.          if(!node)
  398.          {
  399.             break;
  400.          }
  401.          fnPtr(node);
  402.          node = node.nextSibling;
  403.       }
  404.    }
  405.    delete stack;
  406. };
  407. XMLNode.prototype._inorderItr = XML.prototype._inorderItr;
  408. XML.prototype._inorderRec = function(node, fnPtr)
  409. {
  410.    function helperR(node_xml)
  411.    {
  412.       if(node_xml == null)
  413.       {
  414.          return undefined;
  415.       }
  416.       this.fnPtr(node_xml);
  417.       helperR(node_xml.firstChild);
  418.       helperR(node_xml.nextSibling);
  419.    }
  420.    var outer = this;
  421.    helperR(node);
  422. };
  423. XMLNode.prototype._inorderRec = XML.prototype._inorderRec;
  424. XMLNode.prototype.addProperty("text",this.ext_XML_GET_TEXT,this.ext_XML_SET_TEXT);
  425. XML.prototype.addProperty("text",this.ext_XML_GET_TEXT,this.ext_XML_SET_TEXT);
  426. XML.prototype.getElementsByTagName = function(tagName)
  427. {
  428.    function processNode(node)
  429.    {
  430.       if(node.nodeName != null && node.nodeName == tagName)
  431.       {
  432.          nodelist.push(node);
  433.       }
  434.    }
  435.    var nodelist = new Array();
  436.    this._inorderItr(this,processNode);
  437.    return nodelist;
  438. };
  439. XML.prototype.getElementsByTagNames = function()
  440. {
  441.    function processNode(node)
  442.    {
  443.       var i = 0;
  444.       while(i < args.length)
  445.       {
  446.          if(node.nodeName != null && node.nodeName == args[i])
  447.          {
  448.             trace("Found: " + args[i]);
  449.             if(nodelists[i] == undefined)
  450.             {
  451.                nodelists[i] = new Array();
  452.             }
  453.             nodelists[i].push(node);
  454.             break;
  455.          }
  456.          i++;
  457.       }
  458.    }
  459.    var args = arguments;
  460.    var nodelists = new Array(arguments.length);
  461.    this._inorderItr(this,processNode);
  462.    return nodelists;
  463. };
  464. XMLNode.prototype.getElementsByTagNames = XML.prototype.getElementsByTagNames;
  465. XMLNode.prototype.getElementsByTagName = XML.getElementsByTagName;
  466. XML.prototype.getAttribute = function(name)
  467. {
  468.    return this.attributes[name];
  469. };
  470. XMLNode.prototype.getAttribute = XML.prototype.getAttribute;
  471. XML.prototype.setAttribute = function(name, value)
  472. {
  473.    this.attributes[name] = value;
  474. };
  475. XMLNode.prototype.setAttribute = XML.prototype.setAttribute;
  476. XML.prototype.hasAttribute = function(name)
  477. {
  478.    var attrs = this.attributes;
  479.    for(var mc in attrs)
  480.    {
  481.       if(name == mc)
  482.       {
  483.          return true;
  484.       }
  485.    }
  486.    return false;
  487. };
  488. XMLNode.prototype.hasAttribute = XML.prototype.hasAttribute;
  489. XML.prototype.removeAttribute = function(name)
  490. {
  491.    var attr = this.attributes[name];
  492.    delete this.attributes[name];
  493.    return attr;
  494. };
  495. XMLNode.prototype.setAttribute = XML.prototype.setAttribute;
  496. XMLNode.prototype.getOwnerDocument = function()
  497. {
  498.    var odc = this;
  499.    var lastNode = this;
  500.    while(odc)
  501.    {
  502.       lastNode = odc;
  503.       odc = odc.parentNode;
  504.    }
  505.    return !(lastNode instanceof XML) ? null : lastNode;
  506. };
  507. XML.prototype.normalize = function()
  508. {
  509.    function process(node)
  510.    {
  511.       nodeList.push(node);
  512.    }
  513.    var outer = this;
  514.    var nodeList = new Array();
  515.    this._inorderItr(this,process);
  516.    var i = 0;
  517.    while(i < nodeList.length)
  518.    {
  519.       var node = nodeList[i];
  520.       if(node.nodeType == XML.prototype.TEXT_NODE && node.nodeValue.isWhiteSpace())
  521.       {
  522.          node.removeNode();
  523.       }
  524.       else if(node.nodeType == XML.prototype.TEXT_NODE)
  525.       {
  526.          node.nodeValue = node.nodeValue.trim();
  527.       }
  528.       i++;
  529.    }
  530.    delete nodeList;
  531. };
  532. XMLNode.prototype.getDepth = function()
  533. {
  534.    var i = 0;
  535.    var node = this;
  536.    while(node)
  537.    {
  538.       node = node.parentNode;
  539.       i++;
  540.    }
  541.    return i;
  542. };
  543. XML.prototype.getElementsWithAttribute = function(name, value)
  544. {
  545.    function processNode(node)
  546.    {
  547.       if(value == null)
  548.       {
  549.          for(var mcz in node.attributes)
  550.          {
  551.             if(mcz == name)
  552.             {
  553.                nodeList.push(node);
  554.                break;
  555.             }
  556.          }
  557.       }
  558.       else if(node.attributes[name] == value)
  559.       {
  560.          nodeList.push(node);
  561.       }
  562.    }
  563.    if(name == null)
  564.    {
  565.       return undefined;
  566.    }
  567.    var nodeList = new Array();
  568.    this._inorderItr(this,processNode);
  569.    return nodeList;
  570. };
  571. XMLNode.prototype.getElementsWithAttribute = XML.prototype.getElementsWithAttribute;
  572. XMLNode.prototype.getPath = function(path)
  573. {
  574.    function process(node)
  575.    {
  576.       trace(node.nodeName);
  577.       if(node.nodeName != null && node.nodeName == currentPart && i < pathParts.length)
  578.       {
  579.          trace("Found: " + currentPart);
  580.          partTable[i] = node.parentNode.getElementsByTagName(currentPart);
  581.          currentPart = pathParts[++i];
  582.       }
  583.    }
  584.    var i = 0;
  585.    var pathParts = path.split("/");
  586.    var currentPart = pathParts[i];
  587.    var partTable = new Array();
  588.    this._inorderItr(this,process);
  589.    return partTable[partTable.length - 1];
  590. };
  591. XML.prototype.getPath = XMLNode.prototype.getPath;
  592. tf = new TextFormat();
  593. tf.font = "Myriad";
  594. tf.size = 14;
  595. tf.color = 13408563;
  596. tf.underline = true;
  597. tf2 = new TextFormat();
  598. tf2.font = "Myriad";
  599. tf2.size = 14;
  600. tf2.color = 0;
  601. sf = new FStyleFormat();
  602. sf.background = 16777164;
  603. init();
  604. english.tabIndex = 500;
  605. spanish.tabIndex = 501;
  606. audioIcon.tabIndex = 502;
  607. close.tabIndex = 503;
  608. a.tabIndex = 504;
  609. b.tabIndex = 505;
  610. c.tabIndex = 506;
  611. d.tabIndex = 507;
  612. e.tabIndex = 508;
  613. f.tabIndex = 509;
  614. g.tabIndex = 510;
  615. h.tabIndex = 511;
  616. i.tabIndex = 512;
  617. j.tabIndex = 513;
  618. k.tabIndex = 514;
  619. l.tabIndex = 515;
  620. m.tabIndex = 516;
  621. n.tabIndex = 517;
  622. o.tabIndex = 518;
  623. p.tabIndex = 519;
  624. q.tabIndex = 520;
  625. r.tabIndex = 521;
  626. s.tabIndex = 522;
  627. t.tabIndex = 523;
  628. u.tabIndex = 524;
  629. v.tabIndex = 525;
  630. w.tabIndex = 526;
  631. x.tabIndex = 527;
  632. y.tabIndex = 528;
  633. z.tabIndex = 529;
  634. modalBlocker.onRelease = function()
  635. {
  636. };
  637. modalBlocker.hitArea = this;
  638. modalBlocker.useHandCursor = false;
  639. close.onRollOver = function()
  640. {
  641.    this.gotoAndStop("rollOver");
  642. };
  643. close.onRollOut = function()
  644. {
  645.    this.gotoAndStop("rollOut");
  646. };
  647. close.onReleaseOutside = function()
  648. {
  649.    this.gotoAndStop("rollOut");
  650. };
  651. close.onRelease = function()
  652. {
  653.    _root.glossaryPopUp.unloadMovie();
  654.    _root.enableBottomNav();
  655. };
  656. english.onRollOver = function()
  657. {
  658.    this.gotoAndStop("rollOver");
  659. };
  660. english.onRollOut = function()
  661. {
  662.    this.gotoAndStop("rollOut");
  663. };
  664. english.onRelease = function()
  665. {
  666.    english.gotoAndStop("rollOver");
  667.    english.enabled = false;
  668.    spanish.gotoAndStop("rollOut");
  669.    spanish.enabled = true;
  670.    toggle = "en-sp";
  671.    audioIcon.gotoAndStop("disabled");
  672.    audioIcon.enabled = false;
  673.    loadXMLDoc(lastClicked._name);
  674. };
  675. english.onReleaseOutside = function()
  676. {
  677.    this.gotoAndStop("rollOut");
  678. };
  679. spanish.onRollOver = function()
  680. {
  681.    this.gotoAndStop("rollOver");
  682. };
  683. spanish.onRollOut = function()
  684. {
  685.    this.gotoAndStop("rollOut");
  686. };
  687. spanish.onRelease = function()
  688. {
  689.    spanish.gotoAndStop("rollOver");
  690.    spanish.enabled = false;
  691.    english.gotoAndStop("rollOut");
  692.    english.enabled = true;
  693.    toggle = "sp-en";
  694.    loadXMLDoc(lastClicked._name);
  695. };
  696. spanish.onReleaseOutside = function()
  697. {
  698.    this.gotoAndStop("rollOut");
  699. };
  700. audioIcon.onRollOut = function()
  701. {
  702.    this.gotoAndStop("rollOut");
  703. };
  704. audioIcon.onRollOver = function()
  705. {
  706.    this.gotoAndStop("rollOver");
  707. };
  708. audioIcon.onReleaseOutside = function()
  709. {
  710.    this.gotoAndStop("rollOut");
  711. };
  712. audioIcon.onRelease = function()
  713. {
  714.    clickedAudio();
  715. };
  716. a.onRelease = function()
  717. {
  718.    loadXMLDoc(this._name);
  719.    setLastClicked(this);
  720. };
  721. a.onRollOver = function()
  722. {
  723.    this.gotoAndStop("rollOver");
  724. };
  725. a.onRollOut = function()
  726. {
  727.    this.gotoAndStop("rollOut");
  728. };
  729. a.onReleaseOutside = function()
  730. {
  731.    this.gotoAndStop("rollOut");
  732. };
  733. b.onRelease = function()
  734. {
  735.    loadXMLDoc(this._name);
  736.    setLastClicked(this);
  737. };
  738. b.onRollOver = function()
  739. {
  740.    this.gotoAndStop("rollOver");
  741. };
  742. b.onRollOut = function()
  743. {
  744.    this.gotoAndStop("rollOut");
  745. };
  746. b.onReleaseOutside = function()
  747. {
  748.    this.gotoAndStop("rollOut");
  749. };
  750. c.onRelease = function()
  751. {
  752.    loadXMLDoc(this._name);
  753.    setLastClicked(this);
  754. };
  755. c.onRollOver = function()
  756. {
  757.    this.gotoAndStop("rollOver");
  758. };
  759. c.onRollOut = function()
  760. {
  761.    this.gotoAndStop("rollOut");
  762. };
  763. c.onReleaseOutside = function()
  764. {
  765.    this.gotoAndStop("rollOut");
  766. };
  767. d.onRelease = function()
  768. {
  769.    loadXMLDoc(this._name);
  770.    setLastClicked(this);
  771. };
  772. d.onRollOver = function()
  773. {
  774.    this.gotoAndStop("rollOver");
  775. };
  776. d.onRollOut = function()
  777. {
  778.    this.gotoAndStop("rollOut");
  779. };
  780. d.onReleaseOutside = function()
  781. {
  782.    this.gotoAndStop("rollOut");
  783. };
  784. e.onRelease = function()
  785. {
  786.    loadXMLDoc(this._name);
  787.    setLastClicked(this);
  788. };
  789. e.onRollOver = function()
  790. {
  791.    this.gotoAndStop("rollOver");
  792. };
  793. e.onRollOut = function()
  794. {
  795.    this.gotoAndStop("rollOut");
  796. };
  797. e.onReleaseOutside = function()
  798. {
  799.    this.gotoAndStop("rollOut");
  800. };
  801. f.onRelease = function()
  802. {
  803.    loadXMLDoc(this._name);
  804.    setLastClicked(this);
  805. };
  806. f.onRollOver = function()
  807. {
  808.    this.gotoAndStop("rollOver");
  809. };
  810. f.onRollOut = function()
  811. {
  812.    this.gotoAndStop("rollOut");
  813. };
  814. f.onReleaseOutside = function()
  815. {
  816.    this.gotoAndStop("rollOut");
  817. };
  818. g.onRelease = function()
  819. {
  820.    loadXMLDoc(this._name);
  821.    setLastClicked(this);
  822. };
  823. g.onRollOver = function()
  824. {
  825.    this.gotoAndStop("rollOver");
  826. };
  827. g.onRollOut = function()
  828. {
  829.    this.gotoAndStop("rollOut");
  830. };
  831. g.onReleaseOutside = function()
  832. {
  833.    this.gotoAndStop("rollOut");
  834. };
  835. h.onRelease = function()
  836. {
  837.    loadXMLDoc(this._name);
  838.    setLastClicked(this);
  839. };
  840. h.onRollOver = function()
  841. {
  842.    this.gotoAndStop("rollOver");
  843. };
  844. h.onRollOut = function()
  845. {
  846.    this.gotoAndStop("rollOut");
  847. };
  848. h.onReleaseOutside = function()
  849. {
  850.    this.gotoAndStop("rollOut");
  851. };
  852. i.onRelease = function()
  853. {
  854.    loadXMLDoc(this._name);
  855.    setLastClicked(this);
  856. };
  857. i.onRollOver = function()
  858. {
  859.    this.gotoAndStop("rollOver");
  860. };
  861. i.onRollOut = function()
  862. {
  863.    this.gotoAndStop("rollOut");
  864. };
  865. i.onReleaseOutside = function()
  866. {
  867.    this.gotoAndStop("rollOut");
  868. };
  869. j.onRelease = function()
  870. {
  871.    loadXMLDoc(this._name);
  872.    setLastClicked(this);
  873. };
  874. j.onRollOver = function()
  875. {
  876.    this.gotoAndStop("rollOver");
  877. };
  878. j.onRollOut = function()
  879. {
  880.    this.gotoAndStop("rollOut");
  881. };
  882. j.onReleaseOutside = function()
  883. {
  884.    this.gotoAndStop("rollOut");
  885. };
  886. k.onRelease = function()
  887. {
  888.    loadXMLDoc(this._name);
  889.    setLastClicked(this);
  890. };
  891. k.onRollOver = function()
  892. {
  893.    this.gotoAndStop("rollOver");
  894. };
  895. k.onRollOut = function()
  896. {
  897.    this.gotoAndStop("rollOut");
  898. };
  899. k.onReleaseOutside = function()
  900. {
  901.    this.gotoAndStop("rollOut");
  902. };
  903. l.onRelease = function()
  904. {
  905.    loadXMLDoc(this._name);
  906.    setLastClicked(this);
  907. };
  908. l.onRollOver = function()
  909. {
  910.    this.gotoAndStop("rollOver");
  911. };
  912. l.onRollOut = function()
  913. {
  914.    this.gotoAndStop("rollOut");
  915. };
  916. l.onReleaseOutside = function()
  917. {
  918.    this.gotoAndStop("rollOut");
  919. };
  920. m.onRelease = function()
  921. {
  922.    loadXMLDoc(this._name);
  923.    setLastClicked(this);
  924. };
  925. m.onRollOver = function()
  926. {
  927.    this.gotoAndStop("rollOver");
  928. };
  929. m.onRollOut = function()
  930. {
  931.    this.gotoAndStop("rollOut");
  932. };
  933. m.onReleaseOutside = function()
  934. {
  935.    this.gotoAndStop("rollOut");
  936. };
  937. n.onRelease = function()
  938. {
  939.    loadXMLDoc(this._name);
  940.    setLastClicked(this);
  941. };
  942. n.onRollOver = function()
  943. {
  944.    this.gotoAndStop("rollOver");
  945. };
  946. n.onRollOut = function()
  947. {
  948.    this.gotoAndStop("rollOut");
  949. };
  950. n.onReleaseOutside = function()
  951. {
  952.    this.gotoAndStop("rollOut");
  953. };
  954. o.onRelease = function()
  955. {
  956.    loadXMLDoc(this._name);
  957.    setLastClicked(this);
  958. };
  959. o.onRollOver = function()
  960. {
  961.    this.gotoAndStop("rollOver");
  962. };
  963. o.onRollOut = function()
  964. {
  965.    this.gotoAndStop("rollOut");
  966. };
  967. o.onReleaseOutside = function()
  968. {
  969.    this.gotoAndStop("rollOut");
  970. };
  971. p.onRelease = function()
  972. {
  973.    loadXMLDoc(this._name);
  974.    setLastClicked(this);
  975. };
  976. p.onRollOver = function()
  977. {
  978.    this.gotoAndStop("rollOver");
  979. };
  980. p.onRollOut = function()
  981. {
  982.    this.gotoAndStop("rollOut");
  983. };
  984. p.onReleaseOutside = function()
  985. {
  986.    this.gotoAndStop("rollOut");
  987. };
  988. q.onRelease = function()
  989. {
  990.    loadXMLDoc(this._name);
  991.    setLastClicked(this);
  992. };
  993. q.onRollOver = function()
  994. {
  995.    this.gotoAndStop("rollOver");
  996. };
  997. q.onRollOut = function()
  998. {
  999.    this.gotoAndStop("rollOut");
  1000. };
  1001. q.onReleaseOutside = function()
  1002. {
  1003.    this.gotoAndStop("rollOut");
  1004. };
  1005. r.onRelease = function()
  1006. {
  1007.    loadXMLDoc(this._name);
  1008.    setLastClicked(this);
  1009. };
  1010. r.onRollOver = function()
  1011. {
  1012.    this.gotoAndStop("rollOver");
  1013. };
  1014. r.onRollOut = function()
  1015. {
  1016.    this.gotoAndStop("rollOut");
  1017. };
  1018. r.onReleaseOutside = function()
  1019. {
  1020.    this.gotoAndStop("rollOut");
  1021. };
  1022. s.onRelease = function()
  1023. {
  1024.    loadXMLDoc(this._name);
  1025.    setLastClicked(this);
  1026. };
  1027. s.onRollOver = function()
  1028. {
  1029.    this.gotoAndStop("rollOver");
  1030. };
  1031. s.onRollOut = function()
  1032. {
  1033.    this.gotoAndStop("rollOut");
  1034. };
  1035. s.onReleaseOutside = function()
  1036. {
  1037.    this.gotoAndStop("rollOut");
  1038. };
  1039. t.onRelease = function()
  1040. {
  1041.    loadXMLDoc(this._name);
  1042.    setLastClicked(this);
  1043. };
  1044. t.onRollOver = function()
  1045. {
  1046.    this.gotoAndStop("rollOver");
  1047. };
  1048. t.onRollOut = function()
  1049. {
  1050.    this.gotoAndStop("rollOut");
  1051. };
  1052. t.onReleaseOutside = function()
  1053. {
  1054.    this.gotoAndStop("rollOut");
  1055. };
  1056. u.onRelease = function()
  1057. {
  1058.    loadXMLDoc(this._name);
  1059.    setLastClicked(this);
  1060. };
  1061. u.onRollOver = function()
  1062. {
  1063.    this.gotoAndStop("rollOver");
  1064. };
  1065. u.onRollOut = function()
  1066. {
  1067.    this.gotoAndStop("rollOut");
  1068. };
  1069. u.onReleaseOutside = function()
  1070. {
  1071.    this.gotoAndStop("rollOut");
  1072. };
  1073. v.onRelease = function()
  1074. {
  1075.    loadXMLDoc(this._name);
  1076.    setLastClicked(this);
  1077. };
  1078. v.onRollOver = function()
  1079. {
  1080.    this.gotoAndStop("rollOver");
  1081. };
  1082. v.onRollOut = function()
  1083. {
  1084.    this.gotoAndStop("rollOut");
  1085. };
  1086. v.onReleaseOutside = function()
  1087. {
  1088.    this.gotoAndStop("rollOut");
  1089. };
  1090. w.onRelease = function()
  1091. {
  1092.    loadXMLDoc(this._name);
  1093.    setLastClicked(this);
  1094. };
  1095. w.onRollOver = function()
  1096. {
  1097.    this.gotoAndStop("rollOver");
  1098. };
  1099. w.onRollOut = function()
  1100. {
  1101.    this.gotoAndStop("rollOut");
  1102. };
  1103. w.onReleaseOutside = function()
  1104. {
  1105.    this.gotoAndStop("rollOut");
  1106. };
  1107. x.onRelease = function()
  1108. {
  1109.    loadXMLDoc(this._name);
  1110.    setLastClicked(this);
  1111. };
  1112. x.onRollOver = function()
  1113. {
  1114.    this.gotoAndStop("rollOver");
  1115. };
  1116. x.onRollOut = function()
  1117. {
  1118.    this.gotoAndStop("rollOut");
  1119. };
  1120. x.onReleaseOutside = function()
  1121. {
  1122.    this.gotoAndStop("rollOut");
  1123. };
  1124. y.onRelease = function()
  1125. {
  1126.    loadXMLDoc(this._name);
  1127.    setLastClicked(this);
  1128. };
  1129. y.onRollOver = function()
  1130. {
  1131.    this.gotoAndStop("rollOver");
  1132. };
  1133. y.onRollOut = function()
  1134. {
  1135.    this.gotoAndStop("rollOut");
  1136. };
  1137. y.onReleaseOutside = function()
  1138. {
  1139.    this.gotoAndStop("rollOut");
  1140. };
  1141. z.onRelease = function()
  1142. {
  1143.    loadXMLDoc(this._name);
  1144.    setLastClicked(this);
  1145. };
  1146. z.onRollOver = function()
  1147. {
  1148.    this.gotoAndStop("rollOver");
  1149. };
  1150. z.onRollOut = function()
  1151. {
  1152.    this.gotoAndStop("rollOut");
  1153. };
  1154. z.onReleaseOutside = function()
  1155. {
  1156.    this.gotoAndStop("rollOut");
  1157. };
  1158.